﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using Common;

namespace SpiderContract
{
	[ServiceContract(Name = "SpiderService", Namespace = "http://www.3c.org/")]
	public  interface ISpiderService
	{
		[OperationContract]
		void StartJob(int jobId);
		[OperationContract]
		void UpdateJob(int jobId);
		[OperationContract]
		void UpdateJobFile(int fileId);
		[OperationContract]
		void ReCrawl(int jobId, string[] urls);
		[OperationContract]
		bool VerifyUser(string email, string pwd, out CrawlJobInfo[] jobs);
		[OperationContract]
		LinkInfo PopLinkFromWaitQueue(int jobId);
		[OperationContract]
		void PushPageData(PageDataInfo data);
	}
}
